# from datetime import timedelta
# from celery_related.celery import init_celery
#
# celery_app = init_celery()
#
# # celery使用2：定时任务
# # celery有很多配置
# # 时区
# celery_app.conf.timezone = "Asia/Shanghai"
# # 是否使用UTC
# celery_app.conf.enable_utc = False
#
# # 每隔5s爬一次百度
# celery_app.conf.beat_schedule = {
#     "crawl_baidu": {
#         "task": "celery_related.sche_tasks.crwal_baidu",
#         "schedule": timedelta(seconds=5),
#         "args": (),
#     }
# }
